<?php 
class AlbumGrid  extends CWidget {
	public $album_id;
	public $album_title;
	private $album_images;
	
	public function init(){
		$this->album_images = Image::model()->findAll("album_id = :album_id",array("album_id"=>$this->album_id));
	}
	
	public function run(){
		$this->render("AlbumGrid",array(
			'album_id'=>$this->album_id,
			"album_title"=>$this->album_title,
			"album_images"=>$this->album_images
		));
	}
} 

